﻿@model ManageReportVer1.Models.DepartmentModel

@{
    ViewBag.Title = "AddDepartment";
    Layout = "~/Views/Shared/_LayoutSecurityGuard.cshtml";
}
<div id="breadcrumb">
    @Html.ActionLink("Quản lý phòng ban", "ViewDepartment", "Department") >
    Tạo phòng ban mới
</div>
<h2>Tạo phòng ban mới</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Nhập thông tin phòng ban</legend>

        <div class="row">
            @Html.LabelFor(model => model.DepartmentName)
        </div>
        <div class="row">
            @Html.EditorFor(model => model.DepartmentName)
            @Html.ValidationMessageFor(model => model.DepartmentName)
        </div>

        <div class="row">
            @Html.LabelFor(model => model.DepartmentCode)
        </div>
        <div class="row">
            @Html.TextAreaFor(model => model.DepartmentCode)
            @Html.ValidationMessageFor(model => model.DepartmentCode)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div class="backToView">
    @Html.ActionLink("Quay lại danh sách phòng ban", "ViewDepartment")
</div>

